<%@ page language="java" contentType="text/html; charset=utf8" pageEncoding="utf8"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<div class="user">Редактирование даных пользователя</div>
<br/>
<table cellpadding="0" class="list_user" border="1" bordercolor="#000000" width="100%" cellspacing="0">
	<form:form method="POST" commandName="dish" >
		<tr>
			<td width="140" class="list_user_head">ID</td>
			<td width="260" align="left">
				<form:input path="id" readonly="true" class="inputbox" />
			</td>
		</tr>
		<tr>
			<td class="list_user_head">Название</td>
			<td align="left">
				<form:input path="name" id="name" class="inputbox" />
			</td>
		</tr>
		<tr>
			<td class="list_user_head">Описание</td>
			<td align="left">
				<form:textarea path="description" id="description" class="inputbox" />
			</td>
		</tr>
		<tr>
			<td class="list_user_head">Вес, гр.</td>
			<td align="left">
				<form:input path="weight" id="weight" class="inputbox" />
			</td>
		</tr>
		<tr>
			<td class="list_user_head">Цена, грн.</td>
			<td align="left">
				<form:input path="price" id="price" class="inputbox" />
			</td>
		</tr>
		
		<tr>
			<td class="list_user_head">Категория</td>
			<td  align="left">
				<form:select class="inputbox" path="type" >
					<c:forEach items="${listtype}" var="type">
						<form:option value="${type.getId()}" label="${type.getName()}" />
					</c:forEach>
				</form:select>
			</td>
		</tr>
		
		<tr>
			<td colspan="2" height="50" valign="middle">
				<input type="submit" value=" Сохранить "> <br>
			</td>
		</tr>
	</form:form>
</table>





